package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同回款对象 bus_contract_collection
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
public class BusContractCollection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回款id */
    private Long collectionId;

    /** 合同id */
    private Long contractId;

    /** 关联发票号码 */
    @Excel(name = "关联发票号码",sort = 1)
    private String relatedInvoiceNo;

    /** 回款到账金额 */
    @Excel(name = "回款到账金额",sort = 2,cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal collectionSum;

    /** 汇款人 */
    @Excel(name = "汇款人",sort = 3)
    private String remitter;

    /** 到账日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到账日期", width = 30, dateFormat = "yyyy-MM-dd",sort = 4)
    private Date collectionDate;

    public void setCollectionId(Long collectionId) 
    {
        this.collectionId = collectionId;
    }

    public Long getCollectionId() 
    {
        return collectionId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setRelatedInvoiceNo(String relatedInvoiceNo) 
    {
        this.relatedInvoiceNo = relatedInvoiceNo;
    }

    public String getRelatedInvoiceNo() 
    {
        return relatedInvoiceNo;
    }
    public void setCollectionSum(BigDecimal collectionSum) 
    {
        this.collectionSum = collectionSum;
    }

    public BigDecimal getCollectionSum() 
    {
        return collectionSum;
    }
    public void setRemitter(String remitter) 
    {
        this.remitter = remitter;
    }

    public String getRemitter() 
    {
        return remitter;
    }
    public void setCollectionDate(Date collectionDate) 
    {
        this.collectionDate = collectionDate;
    }

    public Date getCollectionDate() 
    {
        return collectionDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("collectionId", getCollectionId())
            .append("contractId", getContractId())
            .append("relatedInvoiceNo", getRelatedInvoiceNo())
            .append("collectionSum", getCollectionSum())
            .append("remitter", getRemitter())
            .append("collectionDate", getCollectionDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
